import './main.css'
import icon from './icon.png'

//无用代码
export const Button = () =>{
    return document.createElement('button')
    console.log('无用代码');
    
}
const img = new Image()
img.src = icon

document.body.append(img)

console.log(API_BASE_URL)

document.body.onclick = ()=>{
    alert('webpack')
    console.log("ceshi");
    
}
//图片热替换
module.hot.accept('./icon.png',()=>{
    img.src = icon
})